package com.example.qxfw.qhtztj.controller;

import com.example.qxfw.common.SysResult;
import com.example.qxfw.qhtztj.entity.SumRainYearData;
import com.example.qxfw.qhtztj.service.SumRainYearDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author BEJSON
 * @description sum_rain_year_data
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/sumRainYearData")
public class SumRainYearDataController {

    @Autowired
    private SumRainYearDataService sumRainYearDataService;

    /**
     * @author pengdongdong
     * @date 2024/11/29
     **/
    @GetMapping("/list")
    public SysResult selectSumRainYearDataList(SumRainYearData sumRainYearData) {
        return SysResult.success(sumRainYearDataService.selectSumRainYearDataList(sumRainYearData));
    }

}
